%h1
  Listing billing_accounts
%table
  %tr
    %th
      id
    %th
      User
    %th
      Status
    %th
      Kind
    %th
      Customer profile
    %th
      Customer payment
    %th
      Card type
    %th
      Account primary
    %th
      Expires at month
    %th
      Expires at year
    %th
      Created at
    %th
      Updated at
  - @billing_accounts.each do |billing_account|
  %tr
    %td
      = h billing_account.id
    %td
      = h billing_account.user_id
    %td
      = h billing_account.status
    %td
      = h billing_account.kind
    %td
      = h billing_account.customer_profile_id
    %td
      = h billing_account.customer_payment_id
    %td
      = h billing_account.card_type
    %td
      = h billing_account.account_primary
    %td
      = h billing_account.expires_at_month
    %td
      = h billing_account.expires_at_year
    %td
      = h billing_account.created_at
    %td
      = h billing_account.updated_at
    %td
      = link_to 'Show', billing_account
    %td
      = link_to 'Edit', edit_billing_account_path(billing_account)
    %td
      = link_to 'Destroy', billing_account, :confirm => 'Are you sure?', :method => :delete
  - end
%br
= link_to 'New billing_account', new_billing_account_path
